import Vue from 'vue'
import VueRouter from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
import ScrollY from './components/ScrollY.vue'
import Banner from './components/Banner.vue'
import ColorVue from './components/Color.vue'
Vue.use(VueRouter)
export default new VueRouter({
  routes: [
    {
      path: '/helloworld',
      component: HelloWorld,
      name: 'HelloWorld',
      meta: {keepalive: true}
    },
    {
      path: '/scrolly',
      component: ScrollY
    },
    {
      path: '/banner',
      component: Banner
    },
    {
      path: '/color',
      component: ColorVue
    }
  ]
})